package view;

import controller.Controller;
import controller.WinLis;

import javax.swing.*;

public class GameJFrame extends JFrame {

    private Controller controller;
    public WinLis winLis=new WinLis();
    public GameJPanel gameJPanel;
    public GameJFrame(Controller controller){
        this.controller=controller;
        gameJPanel = new GameJPanel(controller);
        add(gameJPanel);
        setTitle("斗地主游戏");
        setResizable(false);
        setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
        addWindowListener(winLis);
        pack();
        setLocationRelativeTo(null);

    }
}
